from django.contrib import admin
from django.urls import path, re_path
from app01 import views

urlpatterns = [
    path('admin/', admin.site.urls),

    # 自定义路径
    re_path('book_list/', views.book),  # 主页
    path('book/book_add/', views.book_add),  # 添加书籍
    re_path('book/edit/(\d+)', views.book_edit),  # 编辑书籍
    re_path('book/delete/(\d+)', views.book_delete),  # 删除书籍
]
